IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[SelectAllDetallePedido]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[SelectAllDetallePedido]
GO

CREATE PROCEDURE [dbo].[SelectAllDetallePedido]

AS
BEGIN
	SET NOCOUNT ON

	SELECT
	[IdPedido],
	[IdProducto],
	[Cantidad],
	[Precio],
	[Descuento]
	FROM [DetallePedido]

	SET NOCOUNT OFF
END

GO
